import request from '@/utils/request'

export const miniProgram = (data: any) => {
  return request({
    url: '/scrm-api/console/media/content/mini/list',
    method: 'POST',
    data
  })
}
export const createMiniApp = (data: any) => {
  return request({
    url: '/scrm-api/console/media/content/mini/create',
    method: 'POST',
    data
  })
}
export const delMiniApp = (data: any) => {
  return request({
    url: '/scrm-api/console/media/content/mini/del',
    method: 'POST',
    data
  })
}
export const lookConfig = (data: any) => {
  return request({
    url: '/scrm-api/console/media/content/mini/info',
    method: 'POST',
    data
  })
}
export const editMini = (data: any) => {
  return request({
    url: '/scrm-api/console/media/content/mini/update',
    method: 'POST',
    data
  })
}